package com.sds.shop.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.sds.fw.mvc.Action;
import com.sds.fw.mvc.HttpUtil;
import com.sds.shop.dao.BoardDAO;
import com.sds.shop.dao.ReplyDAO;
import com.sds.shop.vo.SessionVO;

public class BoardModifyAction extends Action {

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		
		request.setCharacterEncoding("euc-KR");		
		
		BoardDAO gdao = BoardDAO.getInstance();

		String boardNo = request.getParameter("boardNo");
		String title = request.getParameter("title");
		String text = request.getParameter("text");
		System.out.println(gdao.modifyBoard(boardNo, title, text));

		HttpUtil.redirect(response, "board.do");
	}

}
